﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace ScrumProject.Models
{
    public class Comment
    {
        [DisplayName("Comment Id")]
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        [Required]
        public string Content { get; set; }
        [Required]
        public System.DateTime Time { get; set; }
        public int PostId { get; set; }
        public virtual Post Post { get; set; }
        [Required]
        public int UserId { get; set; }
        
    }
}